﻿using System.Windows;
using System.ComponentModel;

namespace TravellerApp1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string uid = tb1.Text;
            string pwd = pb1.Password;
            if(MysqlHelper.InitializeConnection("localhost", uid, pwd))
            {
                Views.CreateDb login1 = new();
                login1.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                login1.Show();
                this.Close();
            }
        }
    }
}
